﻿using System.Collections.Generic;

namespace SEIPropertyDataService.Entity.ViewModels
{
    /// <summary>
    /// 拟合回归-二元参数计算模型
    /// </summary>
    public class VM_RegressionOfBinaryCalcModel
    {
        /// <summary>
        /// 单位集名称
        /// </summary>
        public string UnitSet { get; set; }
        /// <summary>
        /// 名称
        /// </summary>
        public string Name { get; set; }
        /// <summary>
        /// 物性方法key
        /// </summary>
        public string PropertyMethod { get; set; }
        /// <summary>
        /// 数据组信息
        /// </summary>
        public VM_DataGroupOfBinaryModel DataGroup { get; set; }
        /// <summary>
        /// 参数列表
        /// </summary>
        public List<VM_RegressionParameterOfBinaryModel> Parameters { get; set; }
    }
    /// <summary>
    /// 拟合回归-二元参数参数模型
    /// </summary>
    public class VM_RegressionParameterOfBinaryModel
    {
        /// <summary>
        /// 参数名称key
        /// </summary>
        public string Name { get; set; }
        /// <summary>
        /// 元素
        /// </summary>
        public int Element { get; set; }
        /// <summary>
        /// 组分id数组，长度2，对应组分i,组分j
        /// </summary>
        public int[] ComponentIds { get; set; }
        /// <summary>
        /// 初始值
        /// </summary>
        public double? InitialValue { get; set; }
        /// <summary>
        /// 下限
        /// </summary>
        public double? LowBound { get; set; }
        /// <summary>
        /// 上限
        /// </summary>
        public double? UpBound { get; set; }
        /// <summary>
        /// 比例因子
        /// </summary>
        public double? ScaleFactor { get; set; }
    }
}
